package com.sevenGroup.pawnshop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sevenGroup.pawnshop.controller.form.GoodsForm;
import com.sevenGroup.pawnshop.controller.form.ShopSelectConditionalForm;
import com.sevenGroup.pawnshop.controller.info.GoodsInfo;
import com.sevenGroup.pawnshop.model.Goods;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sevenGroup
 * @since 2022-02-16
 */
public interface GoodsService extends IService<Goods> {
//  新增商品
    Integer saveShop(GoodsForm goodsForm);
//  查询所有商品
    IPage<GoodsInfo> selectAllShops(Page page);
//  根据条件查询商品（门店ID，仓库ID，商品大类ID，小类ID，商品ID等）
    IPage<GoodsInfo> selectShopsByConditionals(ShopSelectConditionalForm selectConditionalForm);

    IPage<GoodsInfo> selectGoodsByCondition(ShopSelectConditionalForm shopSelectConditionalForm);

    Integer updateGoods(GoodsForm goodsForm);
}
